package pe.gob.mef.snip.preinversion.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import pe.gob.mef.snip.preinversion.dao.mybatis.SubprogramaOdi2009MapperDAO;
import pe.gob.mef.snip.preinversion.domain.SubprogramaOdi2009;
import pe.gob.mef.snip.preinversion.service.SubprogramaOdi2009Service;

@Service
public class SubprogramaOdi2009ServiceImpl implements SubprogramaOdi2009Service{
	
	@Autowired
	private SubprogramaOdi2009MapperDAO subprogramaOdi2009MapperDAO;
	
	public void insertar(SubprogramaOdi2009 subprogramaOdi2009) {
		subprogramaOdi2009MapperDAO.insertar(subprogramaOdi2009);

	}

	public void actualizar(SubprogramaOdi2009 subprogramaOdi2009) {
		subprogramaOdi2009MapperDAO.actualizar(subprogramaOdi2009);
	}

	public void eliminar(SubprogramaOdi2009 subprogramaOdi2009) {
		subprogramaOdi2009MapperDAO.eliminar(subprogramaOdi2009);
		
	}
	
	public SubprogramaOdi2009 obtener(SubprogramaOdi2009 subprogramaOdi2009) {
		 return subprogramaOdi2009MapperDAO.obtener(subprogramaOdi2009);
		
	}

	public List<SubprogramaOdi2009> listar(SubprogramaOdi2009 subprogramaOdi2009) {
		 return subprogramaOdi2009MapperDAO.listar(subprogramaOdi2009);
	}
}
